import request from '@/utils/request'

// 查询设备报修列表
export function listRentRepair(query) {
  return request({
    url: '/rent/rentRepair/list',
    method: 'get',
    params: query
  })
}

// 查询设备报修详细
export function getRentRepair(id) {
  return request({
    url: '/rent/rentRepair/' + id,
    method: 'get'
  })
}

// 新增设备报修
export function addRentRepair(data) {
  return request({
    url: '/rent/rentRepair',
    method: 'post',
    data: data
  })
}

// 修改设备报修
export function updateRentRepair(data) {
  return request({
    url: '/rent/rentRepair',
    method: 'put',
    data: data
  })
}

// 删除设备报修
export function delRentRepair(id) {
  return request({
    url: '/rent/rentRepair/' + id,
    method: 'delete'
  })
}
